<!-- js validate form  -->
<script type="text/javascript">
$().ready(function() {
	$("#add").validate({
		rules: {
					
					confirm_password: {
						required: true,
						minlength: 6,
						equalTo: "#password"
					}
			},
			messages: {
					confirm_password: {
						required: "Xác nhận lại mật khẩu !",
						minlength: "Nhập tối thiểu 6 ký tự !",
						equalTo: "Nhập lại password không đúng !"
					}
			}
	});
});

$.metadata.setType("attr", "validate");
</script>

<div class="content_head">
	<?php echo $title; ?>
</div>

<form id="add" method="POST" action="<?php echo base_url()?>back_end/group_user/add">
<div class="content_ct">
   <div class="content_ct_show">
		<table class="content_ct_show_add_tbl" width="100%">
			<tr>
				<td width="15%" style="text-align:right;">
					<span>Tên nhóm người dùng: </span>
				</td>
				<td width="85%">
					<input type="text" class="required input_txt_table" id="username" name="name">
				</td>
			</tr>
			<tr>
				<td width="15%" style="text-align:right;" valign="top">
					<span>Mô tả: </span>
				</td>
				<td width="85%">
					<textarea class="input_area_table" name="description"></textarea>
				</td>
			</tr>
			<tr>
				<td id="lk_tag" style="text-align:right;">
					<span>Trạng thái : </span>
				</td>
				<td>
					<input type="checkbox" value="1" name="status" />
				</td>
			</tr>
			<tr>
				<td style="text-align:right;">&nbsp;</td>
				<td>
					<input type="submit" name="addform" style="cursor: pointer;" value="Thêm" />
					<input type="reset" style="cursor: pointer;" value="Reset" type="checkbox" />
				</td>
			</tr>
		</table>
	</div>
</div>
</form>